/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package upeu.cepre.model;

import java.io.Serializable;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Elvis Zangetsu
 */
@Entity
@Table(name = "detallealumnoexamen")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Detallealumnoexamen.findAll", query = "SELECT d FROM Detallealumnoexamen d"),
    @NamedQuery(name = "Detallealumnoexamen.findByIdDetalleAlumnoExamen", query = "SELECT d FROM Detallealumnoexamen d WHERE d.idDetalleAlumnoExamen = :idDetalleAlumnoExamen"),
    @NamedQuery(name = "Detallealumnoexamen.findByIdExamenes", query = "SELECT d FROM Detallealumnoexamen d WHERE d.idExamenes = :idExamenes"),
    @NamedQuery(name = "Detallealumnoexamen.findByNotaExamen", query = "SELECT d FROM Detallealumnoexamen d WHERE d.notaExamen = :notaExamen"),
    @NamedQuery(name = "Detallealumnoexamen.findByIdDetallePeriodoAlumno", query = "SELECT d FROM Detallealumnoexamen d WHERE d.idDetallePeriodoAlumno = :idDetallePeriodoAlumno")})
public class Detallealumnoexamen implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "idDetalleAlumnoExamen")
    private String idDetalleAlumnoExamen;
    @Column(name = "idExamenes")
    private String idExamenes;
    @Column(name = "notaExamen")
    private String notaExamen;
    @Column(name = "idDetallePeriodoAlumno")
    private String idDetallePeriodoAlumno;

    public Detallealumnoexamen() {
    }

    public Detallealumnoexamen(String idDetalleAlumnoExamen) {
        this.idDetalleAlumnoExamen = idDetalleAlumnoExamen;
    }

    public String getIdDetalleAlumnoExamen() {
        return idDetalleAlumnoExamen;
    }

    public void setIdDetalleAlumnoExamen(String idDetalleAlumnoExamen) {
        this.idDetalleAlumnoExamen = idDetalleAlumnoExamen;
    }

    public String getIdExamenes() {
        return idExamenes;
    }

    public void setIdExamenes(String idExamenes) {
        this.idExamenes = idExamenes;
    }

    public String getNotaExamen() {
        return notaExamen;
    }

    public void setNotaExamen(String notaExamen) {
        this.notaExamen = notaExamen;
    }

    public String getIdDetallePeriodoAlumno() {
        return idDetallePeriodoAlumno;
    }

    public void setIdDetallePeriodoAlumno(String idDetallePeriodoAlumno) {
        this.idDetallePeriodoAlumno = idDetallePeriodoAlumno;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idDetalleAlumnoExamen != null ? idDetalleAlumnoExamen.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Detallealumnoexamen)) {
            return false;
        }
        Detallealumnoexamen other = (Detallealumnoexamen) object;
        if ((this.idDetalleAlumnoExamen == null && other.idDetalleAlumnoExamen != null) || (this.idDetalleAlumnoExamen != null && !this.idDetalleAlumnoExamen.equals(other.idDetalleAlumnoExamen))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "upeu.cepre.model.Detallealumnoexamen[ idDetalleAlumnoExamen=" + idDetalleAlumnoExamen + " ]";
    }
    
}
